﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 阅读记录表
    /// </summary>
    [Table("cms_read_logs")]
    public class CmsReadLogsEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 关联Id
        /// </summary>
        public long? RefId { get; set; }
        /// <summary>
        /// ReadType 0=新闻 1=企业 2=产品
        /// </summary>
        public int? ReadType { get; set; }
        /// <summary>
        /// Createdate
        /// </summary>
        public DateTime? Createdate { get; set; }
    }
    public class CmsReadLogsMapper : ClassMapper<CmsReadLogsEntity>
    {
        public CmsReadLogsMapper()
        {
            Table("cms_read_logs");
            AutoMap();
        }
    }
}
